package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户收货地址表 用户收货地址表
 *
 * @author WeiZiDong
 */
@Table(name = "`ums_user_receive_address`")
@Data
@ApiModel("用户收货地址表用户收货地址表")
public class UmsUserReceiveAddress implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录ID", example = "String")
    private String id;
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "用户ID", example = "String")
    private String userId;
    @Column(name = "`name`")
    @ApiModelProperty(value = "收货人名称", example = "String")
    private String name;
    @Column(name = "`phone_number`")
    @ApiModelProperty(value = "收货人电话", example = "String")
    private String phoneNumber;
    @Column(name = "`province`")
    @ApiModelProperty(value = "省份/直辖市", example = "String")
    private String province;
    @Column(name = "`city`")
    @ApiModelProperty(value = "城市", example = "String")
    private String city;
    @Column(name = "`region`")
    @ApiModelProperty(value = "区", example = "String")
    private String region;
    @Column(name = "`detail_address`")
    @ApiModelProperty(value = "详细地址(街道)", example = "String")
    private String detailAddress;
    @Column(name = "`default_status`")
    @ApiModelProperty(value = "是否为默认0-非默认地址；1-默认地址", example = "1")
    private Integer defaultStatus;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
